<?php

class OnlineForm extends CFormModel
{
	public $userName;
	public $userPhone;
	public $userAddress;
	public $courier;
	public $message;

	/**
	 * Declares the validation rules.
	 * The rules state that username and userPhone are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(			
			array('userName, userPhone', 'required'),		
			array('city, courier, message', 'default'),		
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'courier'=>'Нужен бесплатный курьер',
		);
	}
	
}
